<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%
	request.setAttribute("title", "学校详情");
	request.setAttribute("modelConfigPath", "baseInfo");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
</style>

<t:panel cssClass="panel-flat form-detailed" customBody="true"
	customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="school" action="/admin/baseInfo/school/save" method="post" cssClass="form-horizontal">
			<div class="hide">
				<t:hidden path="schoolId" />
			</div>
			<t:formgroup>
				<t:label path="schoolName" cssClass="col-sm-2" />
				<t:input path="schoolName" colClass="col-sm-3" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="province" cssClass="col-sm-2" />
				<t:select2 path="province" colClass="col-sm-3" />
				<t:label path="city" cssClass="col-sm-2" />
				<t:select2 path="city" colClass="col-sm-3" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="address" cssClass="col-sm-2" />
				<t:input path="address" colClass="col-sm-9" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="postcode" cssClass="col-sm-2" />
				<t:input path="postcode" colClass="col-sm-3" />
				<t:label path="phone" cssClass="col-sm-2" />
				<t:input path="phone" colClass="col-sm-3" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="homepage" cssClass="col-sm-2" />
				<t:input path="homepage" colClass="col-sm-9" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()"
			cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">
	function saveData() {
		if (!$("form:first").valid()) {
			return;
		}
		$("form:first").submit();
	}
	
	$(function(){
		var options={}
		options.links=[];
		options.links.push({id:'province',selector:'#province',paramName:'province',depend:'first'});
		options.links.push({id:'city',selector:'#city',paramName:'city',depend:'province'});
		
		$.linker(options);
	})

</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
